// 统一管理和房屋相关的请求
import instance from '@/utils/request'

export const swiper = () => instance.get('/home/swiper')
export const groups = (data) => instance.get('/home/groups', data)
export const list = (data) => {
  return instance.get('/houses', {
    params: {
      cityId: data.cityId,
      area: data.area || null,
      subway: data.subway || null,
      rentType: data.rentType || null,
      price: data.price || null,
      more: data.more || null,
      start: data.start || 1,
      end: 20
    }
  })
}

export const houseQue = () => {
  return instance.get('/houses/condition', {
    params: {
      id: 'AREA|dbf46d32-7e76-1196'
    }
  })
}
